package com.jk.dmconsumer.service;

import com.jk.dmcommon.wlentity.GoodsDetailEntity;
import com.jk.dmcommon.wlentity.SwiperEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * 文件名称:HomeService
 *
 * @Description //TODO
 * @Date 2021/9/8 18:21
 * 作者 王乐
 * Copyright (c) 2021,  All Rights Reserved.</pre>
 */
@Component
@FeignClient("DMHOMEPROVIDER")
public interface HomeService {
    //首页各类商品查询
    @RequestMapping(value = "/home/getHomeGoods",method = RequestMethod.POST)
    List<GoodsDetailEntity> getHomeGoods(@RequestBody GoodsDetailEntity goods);
    //轮播图查询
    @RequestMapping("home/getSwiper")
    List<SwiperEntity> getSwiper();
    //获取城市
    @RequestMapping("home/getCity")
    String getCity();
    //热门城市回显
    @RequestMapping("home/hotCity")
    String hotCity();
    //选中替换
    @RequestMapping("home/obtainCity")
    String obtainCity(@RequestParam Integer cityid);
    //获取登录信息
    @RequestMapping("home/getLoginInfo")
    HashMap<String, Object> getLoginInfo();
    //退出登录
    @RequestMapping("home/logout")
    void logout();
}
